export CROSS_COMPILE=/home/edgarzhou/w/gcc_linaro/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
export DEPS_DIR_PATH=/home/edgarzhou/work/gitee/libbpf-bootstrap-for-android/deps
export BUILD_STATIC_ONLY=1
export NO_PKG_CONFIG=1

# build:	build_bpftool
# build:	build_libbpf
build:	build_old_libbpf


# clean:  clean_bpftool
# clean:  clean_libbpf
clean:  clean_old_libbpf

build_new_libbpf:
	cd new_libbpf/src && make V=1 
	cd new_libbpf/src && make install V=1 DESTDIR=$(CURDIR)/install/new_libbpf
	
build_old_libbpf:
	cd old_libbpf/src && make V=1
	cd old_libbpf/src && make install V=1 DESTDIR=$(CURDIR)/install/old_libbpf


clean_libbpf:
	cd libbpf/src && make clean
	cd bpftool/libbpf/src && make clean

clean_old_libbpf:
	cd old_libbpf/src && make clean

build_bpftool:
	cd bpftool/src && make bpftool V=1

clean_bpftool:
	cd bpftool/src && make clean